﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    //费用申请表
    public class Expense_reimbursement
    {
        [Key]
        public int erId { get; set; }


        public string erName { get; set; }//申购人
        

        public DateTime erTime { get; set; }

        [ForeignKey("OrganizationID")]
        public int OrganizationID { get; set; }//外键组织表（部门表）
        public virtual Organization organization { get; set; }

        public int PositionID { get; set; }

        [ForeignKey("erTId")]
        public int erTId { get; set; }//外键申请类型表
        public virtual Expense_reimbursement_Type Expense_Reimbursement_Type { get; set; }

        public int erFY { get; set; }

        public string erBZ { get; set; }

        [ForeignKey("Process_State_ID")]
        public int Process_State_ID { get; set; }//外键状态表
        public virtual Process_application_State Process_Application_State { get; set; }

        [ForeignKey("Aid")]
        public int Aid { get; set; }//申请类型态表
        public virtual application Application { get; set; }

        public string Agency_ID { get; set; }
    }
}
